const express = require('express');

const server = express();

const router = express.Router();
router.get('/api/a',(req,res)=>{

    
    res.send({
        code:1,
        message:'a success'
    })
})


router.get('/api/b',(req,res)=>{

    
    res.send({
        code:1,
        message:'b success'
    })
})


router.get('/api/c',(req,res)=>{

    
    res.send({
        code:1,
        message:'c success'
    })
})
server.use(router);


server.listen(8081,()=>{
    console.log('server is running at http://');
})